<html>
<head>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<div align="left"></div>
<table width="1158" border="0" cellpadding="0" cellspacing="0"
	bgcolor="#6699FF">
	<tr>
		<td width="258" valign="top" rowspan="2"><a href="home.php"><img
			src="/Images/libros2.jpg" width="92" height="138"><font size="7"
			color="#FFFFFF">Librejo!</font></a></td>
		<td width="577" height="130"></td>
		<td width="252"></td>
		<td width="16"></td>
		<td width="55"></td>
	</tr>
	<tr>
		<td height="21"></td>
		<td valign="top">Bienvenido Administrator</td>
		<td></td>
		<td valign="top"><a href="AdminManager.htm">Logout</a></td>
	</tr>
</table>
<br>
<br>

<?php
$serverpath=$_SERVER['DOCUMENT_ROOT'];
include ($serverpath.'/funciones.php');
$searchResult = file_get_contents('store_search');
$sectionInfo = unserialize($searchResult);

foreach ($sectionInfo as &$value) {
	$info = explode('|', $value);
	
	echo '
		<table width="1123" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="266" valign="top" rowspan="6"><img src="'.$info[9].'" width="266" height="400"></td>
    <td width="258" height="38" valign="top">'.$info[1].'</td>
    <td width="177" valign="top">'.$info[2].'</td>
    <td valign="top" colspan="2">Precio: '.$info[5].'</td>
    <td width="150" valign="top">Stock: '.$info[6].'</td>
    <td width="130" valign="top">Visitas: '.$info[4].'</td>
  </tr>
  <tr> 
    <td height="24"></td>
    <td></td>
    <td width="71"></td>
    <td width="71"></td>
    <td></td>
    <td></td>
  </tr>
  <tr> 
    <td height="130" colspan="5" valign="top">'.$info[8].'</td>
    <td></td>
  </tr>
  <tr> 
    <td height="101" colspan="3" valign="top">'.retriveComments().'</td>
    <td colspan="2" valign="top">Puntuacion de los usuarios: '.$info[3].'</td>
    <td></td>
  </tr>
  <tr> 
    <td colspan="3" valign="top" rowspan="2">carga comentario 
      <form name="form1" method="post" action="">
        <input type="submit" name="submit" value="Agregar Opinion">
      </form>
    </td>
    <td height="74"></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td height="33"></td>
    <td></td>
    <td valign="top"> 
      <input type="submit" name="submit2" value="Agregar al carrito">
    </td>
  </tr>
</table>';
}
?>
</body>
</html>
